package com.cedarhd.finance.msg.dto;

import com.cedarhd.finance.msg.common.enums.PointType;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import java.util.Date;

/**
 * @author Evan
 * @date 2018/3/26
 */
@Data
@ToString
public class PointBackendDTO {
    private Integer id;

    @ApiModelProperty(value = "用户手机号")
    private String userPhone;

    @ApiModelProperty(value = "埋点类型")
    private PointType pointType;

    @ApiModelProperty(value = "埋点描述")
    private String description;

    @ApiModelProperty(value = "记录日期")
    private String recordDate;

    @ApiModelProperty(value = "最后更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date lastUpdated;

    @ApiModelProperty(value = "当天累计")
    private Integer num;
}
